
const useColumns = () => {
    const columns = [
        {
            title: '序号',
            render ( text, code, index ) {
                return (<span>{index + 1}</span>)
            }
        },
        {
            title: '产品名称',
            dataIndex: 'proname'
        },
        {
            title: '图片',
            render (text, code, index) {
                return (<img alt="" src={code.img1} />)
            }
        },
        {
            title: '价格',
            dataIndex: 'originprice'
        }
    ]
    return columns
}

export default useColumns